import {
	defineConfig
} from 'vite'
import uni from '@dcloudio/vite-plugin-uni';
// 自动导入 Vue API
import AutoImport from 'unplugin-auto-import/vite';
// 自动导入 组件
import Components from "unplugin-vue-components/vite"

export default defineConfig({
	plugins: [
		uni(),
		AutoImport({
			imports: ['vue', 'vue-i18n'],
			dts: './auto-imports.d.ts',
		}),
		Components({
			dts: './components.d.ts',
		})
	],
})